﻿<Window x:Class="MercuryFE.NewAssignment"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Create New Control Panel Assignment" Height="160" Width="400">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        
             
        <Label Grid.Column="0" Grid.Row="0">Emulator</Label>
        <ComboBox Grid.Column="1" Grid.Row="0" x:Name="cmbEmulator" HorizontalAlignment="Left" Height="20" Width="250" SelectionChanged="cmbEmulator_SelectionChanged"></ComboBox>

        <Label Grid.Column="0" Grid.Row="1">System</Label>
        <StackPanel x:Name="spSystemSelection" Orientation="Horizontal" Grid.Column="1" Grid.Row="1" Visibility="Hidden">
            <ComboBox  x:Name="cmbSystemMameType" Height="20" Width="100" SelectionChanged="cmbSystemMameType_SelectionChanged"></ComboBox>
            <ComboBox  x:Name="cmbSystem" Height="20" Width="150"></ComboBox>
        </StackPanel>
        <StackPanel x:Name="spCustomGameSelection" Orientation="Horizontal" Grid.Column="1" Grid.Row="1" Visibility="Hidden">
            <ComboBox  x:Name="cmbCustomGame" Height="20" Width="250" SelectionChanged="cmbCustomGame_SelectionChanged"></ComboBox>
        </StackPanel>

        <StackPanel x:Name="spButtons" Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2" Grid.ColumnSpan="2"></StackPanel>
        <Button x:Name="btnCancel" Click="btnCancel_Click" Grid.Column="1" Margin="140,6,58,4" Grid.Row="2">Cancel</Button>
        <Button x:Name="btnOK" Width="100" Click="btnOK_Click" Grid.Column="1" HorizontalAlignment="Left" Margin="34,6,0,4" Grid.Row="2">OK</Button>
    </Grid>
</Window>
